package x.ovo.wechat.bot.http.response;

import lombok.Data;
import x.ovo.wechat.bot.common.http.response.BaseResponse;

import java.io.Serializable;

/**
 * 上传媒体附件的响应体
 *
 * @author ovo, created by 2024/04/21
 */
@Data
public class UploadMediaResponse implements Serializable {

    private BaseResponse BaseResponse;
    private String MediaId;
    private Integer StartPos;
    private Integer CDNThumbImgHeight;
    private Integer CDNThumbImgWidth;
    private String EncryFileName;

    /**
     * 是否完整
     *
     * @return boolean
     */
    public boolean isFull() {
        return this.BaseResponse.getRet() == 0;
    }
}
